package com.itheima.myextends.homework.homework5;


/**
 * @Author 王加鑫
 * @Date 2021/5/6 20:47
 * @Version 1.0
 */
public class WorkTeacher extends Teacher {

    public WorkTeacher() {
    }

    public WorkTeacher(String name, int age) {
        super(name, age);
    }

    public void show(){
        System.out.println(getName() + "..." + getAge());
    }

    @Override
    public void teach() {
        System.out.println("就业班老师讲JavaEE");
    }
}
